<%-- 
    Document   : login
    Created on : 23-jun-2012, 4:42:46
    Author     : Joel Jimenez
--%>

<jsp:useBean id="usuario" class="Logica.Conexion" scope="session"></jsp:useBean>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!DOCTYPE html>
<html lang="en">
<head>
<title>Hospitales Kibo</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>	
<script type="text/javascript" src="js/Myriad_Pro_300.font.js"></script>
<!--[if lt IE 9]>
	<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
	<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
</head>
<body id="page1">
<div class="body2"></div>
<div class="body1">
	<div class="main">
<!-- header -->
		<header>
			
			<nav>
				<ul id="menu">
					<li id="menu_active"><a href="temp/build.jsp">Pefil</a></li>
					<li><a href="build.jsp">Servicios</a></li>
					<li><a href="temp/build.jsp">Hospitales</a></li>
					<li><a href="temp/build.jsp">Farmacias</a></li>
					<li><a href="temp/build.jsp">Citas</a></li>
					<li class="bg_none"><a href="index.jsp">Salir</a></li>
				</ul>
			</nav>
			<div class="wrapper">
				<div class="text1">Citas</div>
				
			</div>
		</header>
<!-- / header -->
	</div>
</div>
<div class="body2">
	<div class="main">
<!-- content -->
		<section id="content">
			<div class="marg_top wrapper">
				<div class="box1_out">
					<div class="box1">
						<h2>Pacientes</h2>
						<div class="wrapper">
                                                    <div>
                                                        <table>
                                                            <tr>
                                                                <td>Nombre del paciente</td>
                                                                <td>.   Ejecucion</td>
                                                            </tr>
                                                                <%
                                                                try{
                                                                   Logica.Dao d=new Logica.Dao();
                                                                   String val="";
                                                                   java.util.ArrayList<String[]> pacientes =d.ogetPacientes();
                                                                   for(int i=1; i<pacientes.size(); i++)
                                                                   {
                                                                       val=pacientes.get(i)[0];
                                                                       out.print("<tr><td>"+val+"</td><td><form id=\"form_3\" action=\"asigna\" method=\"post\"><input type=\"submit\" value=\"Ver "+val +"\"></form></td></tr>");
                                                                   }
                                                                 }catch(Exception e){out.println(e.getMessage());}
                                                                %>
                                                            </table>
                                                    
								</div>
						</div>
						
					</div>
				</div>
				<div class="box1_bot"><div class="box1_bot_left"><div class="box1_bot_right"></div></div></div>
			</div>
		</section>
<!-- / content -->
	</div>
</div>

<div class="main">
<!-- footer -->
	<footer>
		<div class="wrapper">
		</div>
		<div class="under2"></div>
		<div class="wrapper font_size">
			<div class="pad">
				<a rel="nofollow" href="http://www.google.com/" target="_blank">Kibo Engenier</a> designed by Kibo<br>
				<a href="http://www.google.com/" target="_blank">Logica</a> provided by kibo.com
			</div>
		</div>
	</footer>
<!-- / footer -->
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>